package com.mes.cloud.api.dto.request.productpricegroup;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * 产品价格组-产品关联
 * 
 * @author wxm
 * @version 2019-09-24 14:49:07
 * @email xiaomin.wu1@pactera.com
 */
@Data
public class ProductPriceGroupProductUpdateRequest implements Serializable{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = true)
    private String id;

    @ApiModelProperty(value = "标准价格", required = false)
    private BigDecimal standardPrice;

    @ApiModelProperty(value = "标准进货价格", required = false)
    private BigDecimal standardPurchasePrice;

    @ApiModelProperty(value = "标准出货价格", required = false)
    private BigDecimal standardSellPrice;

    @ApiModelProperty(value = "有效起始时间", required = false)
    private Date effectiveStartDate;

    @ApiModelProperty(value = "有效结束时间", required = true)
    @NotNull(message = "effectiveEndDate不能为空")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date effectiveEndDate;

}
